<template>
  <div id="app">
    <router-view></router-view>
  </div>

</template>

<script>
import QuestionDialog from "./components/question/QuestionDialog";
export default {
  name: 'App',
  components: {QuestionDialog},
  data() {
    return {
      activeIndex: this.$route.path,
      dialogVisible: false,
      question: ''
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    doSearch() {
      alert("搜索触发")
    },
    show()
    {
      this.$refs.question.init();
    },
    // 添加评论
    addQuestion() {
      // TODO 1.发送axios请求 2.清空question内容 3.在session中去获取userId
    }
  }
}
</script>

<style>
  #header{
    font-weight: 600;
  }
  #search{
    border-radius: 20em;
    font-weight: 600;
  }
  #searchIcon:hover{
    color: #0066FF;
  }
  #searchBtn{
    font-weight: 600;
    margin-left: 39px;
  }
</style>
